\(\int \frac {x (a+b \sec ^{-1}(c x))}{d+e x^2} \, dx\) [92]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [C] (warning: unable to verify)
   Fricas [F]
   Sympy [F]
   Maxima [F]
   Giac [F(-2)]
   Mupad [F(-1)]

Optimal result

Integrand size = 19, antiderivative size = 487 \[ \int \frac {x \left (a+b \sec ^{-1}(c x)\right )}{d+e x^2} \, dx=\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}-\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+e^{2 i \sec ^{-1}(c x)}\right )}{e}-\frac {i b \operatorname {PolyLog}\left (2,-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}-\frac {i b \operatorname {PolyLog}\left (2,\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}-\frac {i b \operatorname {PolyLog}\left (2,-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}-\frac {i b \operatorname {PolyLog}\left (2,\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}+\frac {i b \operatorname {PolyLog}\left (2,-e^{2 i \sec ^{-1}(c x)}\right )}{2 e} \]

[Out]

-(a+b*arcsec(c*x))*ln(1+(1/c/x+I*(1-1/c^2/x^2)^(1/2))^2)/e+1/2*(a+b*arcsec(c*x))*ln(1-c*(1/c/x+I*(1-1/c^2/x^2)
^(1/2))*(-d)^(1/2)/(e^(1/2)-(c^2*d+e)^(1/2)))/e+1/2*(a+b*arcsec(c*x))*ln(1+c*(1/c/x+I*(1-1/c^2/x^2)^(1/2))*(-d
)^(1/2)/(e^(1/2)-(c^2*d+e)^(1/2)))/e+1/2*(a+b*arcsec(c*x))*ln(1-c*(1/c/x+I*(1-1/c^2/x^2)^(1/2))*(-d)^(1/2)/(e^
(1/2)+(c^2*d+e)^(1/2)))/e+1/2*(a+b*arcsec(c*x))*ln(1+c*(1/c/x+I*(1-1/c^2/x^2)^(1/2))*(-d)^(1/2)/(e^(1/2)+(c^2*
d+e)^(1/2)))/e+1/2*I*b*polylog(2,-(1/c/x+I*(1-1/c^2/x^2)^(1/2))^2)/e-1/2*I*b*polylog(2,-c*(1/c/x+I*(1-1/c^2/x^
2)^(1/2))*(-d)^(1/2)/(e^(1/2)-(c^2*d+e)^(1/2)))/e-1/2*I*b*polylog(2,c*(1/c/x+I*(1-1/c^2/x^2)^(1/2))*(-d)^(1/2)
/(e^(1/2)-(c^2*d+e)^(1/2)))/e-1/2*I*b*polylog(2,-c*(1/c/x+I*(1-1/c^2/x^2)^(1/2))*(-d)^(1/2)/(e^(1/2)+(c^2*d+e)
^(1/2)))/e-1/2*I*b*polylog(2,c*(1/c/x+I*(1-1/c^2/x^2)^(1/2))*(-d)^(1/2)/(e^(1/2)+(c^2*d+e)^(1/2)))/e

Rubi [A] (verified)

Time = 0.80 (sec) , antiderivative size = 487, normalized size of antiderivative = 1.00, number of steps used = 26, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.474, Rules used = {5348, 4818, 4722, 3800, 2221, 2317, 2438, 4826, 4616} \[ \int \frac {x \left (a+b \sec ^{-1}(c x)\right )}{d+e x^2} \, dx=\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {c^2 d+e}+\sqrt {e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {c^2 d+e}+\sqrt {e}}\right )}{2 e}-\frac {\log \left (1+e^{2 i \sec ^{-1}(c x)}\right ) \left (a+b \sec ^{-1}(c x)\right )}{e}-\frac {i b \operatorname {PolyLog}\left (2,-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {d c^2+e}}\right )}{2 e}-\frac {i b \operatorname {PolyLog}\left (2,\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {d c^2+e}}\right )}{2 e}-\frac {i b \operatorname {PolyLog}\left (2,-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {d c^2+e}}\right )}{2 e}-\frac {i b \operatorname {PolyLog}\left (2,\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {d c^2+e}}\right )}{2 e}+\frac {i b \operatorname {PolyLog}\left (2,-e^{2 i \sec ^{-1}(c x)}\right )}{2 e} \]

[In]

Int[(x*(a + b*ArcSec[c*x]))/(d + e*x^2),x]

[Out]

((a + b*ArcSec[c*x])*Log[1 - (c*Sqrt[-d]*E^(I*ArcSec[c*x]))/(Sqrt[e] - Sqrt[c^2*d + e])])/(2*e) + ((a + b*ArcS
ec[c*x])*Log[1 + (c*Sqrt[-d]*E^(I*ArcSec[c*x]))/(Sqrt[e] - Sqrt[c^2*d + e])])/(2*e) + ((a + b*ArcSec[c*x])*Log
[1 - (c*Sqrt[-d]*E^(I*ArcSec[c*x]))/(Sqrt[e] + Sqrt[c^2*d + e])])/(2*e) + ((a + b*ArcSec[c*x])*Log[1 + (c*Sqrt
[-d]*E^(I*ArcSec[c*x]))/(Sqrt[e] + Sqrt[c^2*d + e])])/(2*e) - ((a + b*ArcSec[c*x])*Log[1 + E^((2*I)*ArcSec[c*x
])])/e - ((I/2)*b*PolyLog[2, -((c*Sqrt[-d]*E^(I*ArcSec[c*x]))/(Sqrt[e] - Sqrt[c^2*d + e]))])/e - ((I/2)*b*Poly
Log[2, (c*Sqrt[-d]*E^(I*ArcSec[c*x]))/(Sqrt[e] - Sqrt[c^2*d + e])])/e - ((I/2)*b*PolyLog[2, -((c*Sqrt[-d]*E^(I
*ArcSec[c*x]))/(Sqrt[e] + Sqrt[c^2*d + e]))])/e - ((I/2)*b*PolyLog[2, (c*Sqrt[-d]*E^(I*ArcSec[c*x]))/(Sqrt[e]
+ Sqrt[c^2*d + e])])/e + ((I/2)*b*PolyLog[2, -E^((2*I)*ArcSec[c*x])])/e

Rule 2221

Int[(((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.))/((a_) + (b_.)*((F_)^((g_.)*((e_.) +
 (f_.)*(x_))))^(n_.)), x_Symbol] :> Simp[((c + d*x)^m/(b*f*g*n*Log[F]))*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x]
 - Dist[d*(m/(b*f*g*n*Log[F])), Int[(c + d*x)^(m - 1)*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x], x] /; FreeQ[{F,
a, b, c, d, e, f, g, n}, x] && IGtQ[m, 0]

Rule 2317

Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Dist[1/(d*e*n*Log[F]), Subst[Int
[Log[a + b*x]/x, x], x, (F^(e*(c + d*x)))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 3800

Int[((c_.) + (d_.)*(x_))^(m_.)*tan[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[I*((c + d*x)^(m + 1)/(d*(m + 1))), x
] - Dist[2*I, Int[(c + d*x)^m*(E^(2*I*(e + f*x))/(1 + E^(2*I*(e + f*x)))), x], x] /; FreeQ[{c, d, e, f}, x] &&
 IGtQ[m, 0]

Rule 4616

Int[(((e_.) + (f_.)*(x_))^(m_.)*Sin[(c_.) + (d_.)*(x_)])/(Cos[(c_.) + (d_.)*(x_)]*(b_.) + (a_)), x_Symbol] :>
Simp[I*((e + f*x)^(m + 1)/(b*f*(m + 1))), x] + (-Dist[I, Int[(e + f*x)^m*(E^(I*(c + d*x))/(a - Rt[a^2 - b^2, 2
] + b*E^(I*(c + d*x)))), x], x] - Dist[I, Int[(e + f*x)^m*(E^(I*(c + d*x))/(a + Rt[a^2 - b^2, 2] + b*E^(I*(c +
 d*x)))), x], x]) /; FreeQ[{a, b, c, d, e, f}, x] && IGtQ[m, 0] && PosQ[a^2 - b^2]

Rule 4722

Int[((a_.) + ArcCos[(c_.)*(x_)]*(b_.))^(n_.)/(x_), x_Symbol] :> -Subst[Int[(a + b*x)^n*Tan[x], x], x, ArcCos[c
*x]] /; FreeQ[{a, b, c}, x] && IGtQ[n, 0]

Rule 4818

Int[((a_.) + ArcCos[(c_.)*(x_)]*(b_.))^(n_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^2)^(p_.), x_Symbol] :> Int[
ExpandIntegrand[(a + b*ArcCos[c*x])^n, (f*x)^m*(d + e*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[c^
2*d + e, 0] && IGtQ[n, 0] && IntegerQ[p] && IntegerQ[m]

Rule 4826

Int[((a_.) + ArcCos[(c_.)*(x_)]*(b_.))^(n_.)/((d_) + (e_.)*(x_)), x_Symbol] :> -Subst[Int[(a + b*x)^n*(Sin[x]/
(c*d + e*Cos[x])), x], x, ArcCos[c*x]] /; FreeQ[{a, b, c, d, e}, x] && IGtQ[n, 0]

Rule 5348

Int[((a_.) + ArcSec[(c_.)*(x_)]*(b_.))^(n_.)*(x_)^(m_.)*((d_.) + (e_.)*(x_)^2)^(p_.), x_Symbol] :> -Subst[Int[
(e + d*x^2)^p*((a + b*ArcCos[x/c])^n/x^(m + 2*(p + 1))), x], x, 1/x] /; FreeQ[{a, b, c, d, e, n}, x] && IGtQ[n
, 0] && IntegerQ[m] && IntegerQ[p]

Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {a+b \arccos \left (\frac {x}{c}\right )}{x \left (e+d x^2\right )} \, dx,x,\frac {1}{x}\right ) \\ & = -\text {Subst}\left (\int \left (\frac {a+b \arccos \left (\frac {x}{c}\right )}{e x}-\frac {d x \left (a+b \arccos \left (\frac {x}{c}\right )\right )}{e \left (e+d x^2\right )}\right ) \, dx,x,\frac {1}{x}\right ) \\ & = -\frac {\text {Subst}\left (\int \frac {a+b \arccos \left (\frac {x}{c}\right )}{x} \, dx,x,\frac {1}{x}\right )}{e}+\frac {d \text {Subst}\left (\int \frac {x \left (a+b \arccos \left (\frac {x}{c}\right )\right )}{e+d x^2} \, dx,x,\frac {1}{x}\right )}{e} \\ & = \frac {\text {Subst}\left (\int (a+b x) \tan (x) \, dx,x,\sec ^{-1}(c x)\right )}{e}+\frac {d \text {Subst}\left (\int \left (-\frac {\sqrt {-d} \left (a+b \arccos \left (\frac {x}{c}\right )\right )}{2 d \left (\sqrt {e}-\sqrt {-d} x\right )}+\frac {\sqrt {-d} \left (a+b \arccos \left (\frac {x}{c}\right )\right )}{2 d \left (\sqrt {e}+\sqrt {-d} x\right )}\right ) \, dx,x,\frac {1}{x}\right )}{e} \\ & = \frac {i \left (a+b \sec ^{-1}(c x)\right )^2}{2 b e}-\frac {(2 i) \text {Subst}\left (\int \frac {e^{2 i x} (a+b x)}{1+e^{2 i x}} \, dx,x,\sec ^{-1}(c x)\right )}{e}-\frac {\sqrt {-d} \text {Subst}\left (\int \frac {a+b \arccos \left (\frac {x}{c}\right )}{\sqrt {e}-\sqrt {-d} x} \, dx,x,\frac {1}{x}\right )}{2 e}+\frac {\sqrt {-d} \text {Subst}\left (\int \frac {a+b \arccos \left (\frac {x}{c}\right )}{\sqrt {e}+\sqrt {-d} x} \, dx,x,\frac {1}{x}\right )}{2 e} \\ & = \frac {i \left (a+b \sec ^{-1}(c x)\right )^2}{2 b e}-\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+e^{2 i \sec ^{-1}(c x)}\right )}{e}+\frac {b \text {Subst}\left (\int \log \left (1+e^{2 i x}\right ) \, dx,x,\sec ^{-1}(c x)\right )}{e}+\frac {\sqrt {-d} \text {Subst}\left (\int \frac {(a+b x) \sin (x)}{\frac {\sqrt {e}}{c}-\sqrt {-d} \cos (x)} \, dx,x,\sec ^{-1}(c x)\right )}{2 e}-\frac {\sqrt {-d} \text {Subst}\left (\int \frac {(a+b x) \sin (x)}{\frac {\sqrt {e}}{c}+\sqrt {-d} \cos (x)} \, dx,x,\sec ^{-1}(c x)\right )}{2 e} \\ & = -\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+e^{2 i \sec ^{-1}(c x)}\right )}{e}-\frac {(i b) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{2 i \sec ^{-1}(c x)}\right )}{2 e}-\frac {\left (i \sqrt {-d}\right ) \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}-\sqrt {-d} e^{i x}} \, dx,x,\sec ^{-1}(c x)\right )}{2 e}-\frac {\left (i \sqrt {-d}\right ) \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}-\sqrt {-d} e^{i x}} \, dx,x,\sec ^{-1}(c x)\right )}{2 e}+\frac {\left (i \sqrt {-d}\right ) \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}+\sqrt {-d} e^{i x}} \, dx,x,\sec ^{-1}(c x)\right )}{2 e}+\frac {\left (i \sqrt {-d}\right ) \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}+\sqrt {-d} e^{i x}} \, dx,x,\sec ^{-1}(c x)\right )}{2 e} \\ & = \frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}-\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+e^{2 i \sec ^{-1}(c x)}\right )}{e}+\frac {i b \operatorname {PolyLog}\left (2,-e^{2 i \sec ^{-1}(c x)}\right )}{2 e}-\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {-d} e^{i x}}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}}\right ) \, dx,x,\sec ^{-1}(c x)\right )}{2 e}-\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {-d} e^{i x}}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}}\right ) \, dx,x,\sec ^{-1}(c x)\right )}{2 e}-\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {-d} e^{i x}}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}}\right ) \, dx,x,\sec ^{-1}(c x)\right )}{2 e}-\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {-d} e^{i x}}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}}\right ) \, dx,x,\sec ^{-1}(c x)\right )}{2 e} \\ & = \frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}-\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+e^{2 i \sec ^{-1}(c x)}\right )}{e}+\frac {i b \operatorname {PolyLog}\left (2,-e^{2 i \sec ^{-1}(c x)}\right )}{2 e}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {-d} x}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(c x)}\right )}{2 e}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {-d} x}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(c x)}\right )}{2 e}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {-d} x}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(c x)}\right )}{2 e}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {-d} x}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(c x)}\right )}{2 e} \\ & = \frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}+\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}-\frac {\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+e^{2 i \sec ^{-1}(c x)}\right )}{e}-\frac {i b \operatorname {PolyLog}\left (2,-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}-\frac {i b \operatorname {PolyLog}\left (2,\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 e}-\frac {i b \operatorname {PolyLog}\left (2,-\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}-\frac {i b \operatorname {PolyLog}\left (2,\frac {c \sqrt {-d} e^{i \sec ^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 e}+\frac {i b \operatorname {PolyLog}\left (2,-e^{2 i \sec ^{-1}(c x)}\right )}{2 e} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.51 (sec) , antiderivative size = 891, normalized size of antiderivative = 1.83 \[ \int \frac {x \left (a+b \sec ^{-1}(c x)\right )}{d+e x^2} \, dx=\frac {4 i b \arcsin \left (\frac {\sqrt {1-\frac {i \sqrt {e}}{c \sqrt {d}}}}{\sqrt {2}}\right ) \arctan \left (\frac {\left (-i c \sqrt {d}+\sqrt {e}\right ) \tan \left (\frac {1}{2} \sec ^{-1}(c x)\right )}{\sqrt {c^2 d+e}}\right )+4 i b \arcsin \left (\frac {\sqrt {1+\frac {i \sqrt {e}}{c \sqrt {d}}}}{\sqrt {2}}\right ) \arctan \left (\frac {\left (i c \sqrt {d}+\sqrt {e}\right ) \tan \left (\frac {1}{2} \sec ^{-1}(c x)\right )}{\sqrt {c^2 d+e}}\right )+b \sec ^{-1}(c x) \log \left (1+\frac {i \left (\sqrt {e}-\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )+2 b \arcsin \left (\frac {\sqrt {1+\frac {i \sqrt {e}}{c \sqrt {d}}}}{\sqrt {2}}\right ) \log \left (1+\frac {i \left (\sqrt {e}-\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )+b \sec ^{-1}(c x) \log \left (1+\frac {i \left (-\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )+2 b \arcsin \left (\frac {\sqrt {1-\frac {i \sqrt {e}}{c \sqrt {d}}}}{\sqrt {2}}\right ) \log \left (1+\frac {i \left (-\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )+b \sec ^{-1}(c x) \log \left (1-\frac {i \left (\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )-2 b \arcsin \left (\frac {\sqrt {1-\frac {i \sqrt {e}}{c \sqrt {d}}}}{\sqrt {2}}\right ) \log \left (1-\frac {i \left (\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )+b \sec ^{-1}(c x) \log \left (1+\frac {i \left (\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )-2 b \arcsin \left (\frac {\sqrt {1+\frac {i \sqrt {e}}{c \sqrt {d}}}}{\sqrt {2}}\right ) \log \left (1+\frac {i \left (\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )-2 b \sec ^{-1}(c x) \log \left (1+e^{2 i \sec ^{-1}(c x)}\right )+a \log \left (d+e x^2\right )-i b \operatorname {PolyLog}\left (2,-\frac {i \left (-\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )-i b \operatorname {PolyLog}\left (2,\frac {i \left (-\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )-i b \operatorname {PolyLog}\left (2,-\frac {i \left (\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )-i b \operatorname {PolyLog}\left (2,\frac {i \left (\sqrt {e}+\sqrt {c^2 d+e}\right ) e^{i \sec ^{-1}(c x)}}{c \sqrt {d}}\right )+i b \operatorname {PolyLog}\left (2,-e^{2 i \sec ^{-1}(c x)}\right )}{2 e} \]

[In]

Integrate[(x*(a + b*ArcSec[c*x]))/(d + e*x^2),x]

[Out]

((4*I)*b*ArcSin[Sqrt[1 - (I*Sqrt[e])/(c*Sqrt[d])]/Sqrt[2]]*ArcTan[(((-I)*c*Sqrt[d] + Sqrt[e])*Tan[ArcSec[c*x]/
2])/Sqrt[c^2*d + e]] + (4*I)*b*ArcSin[Sqrt[1 + (I*Sqrt[e])/(c*Sqrt[d])]/Sqrt[2]]*ArcTan[((I*c*Sqrt[d] + Sqrt[e
])*Tan[ArcSec[c*x]/2])/Sqrt[c^2*d + e]] + b*ArcSec[c*x]*Log[1 + (I*(Sqrt[e] - Sqrt[c^2*d + e])*E^(I*ArcSec[c*x
]))/(c*Sqrt[d])] + 2*b*ArcSin[Sqrt[1 + (I*Sqrt[e])/(c*Sqrt[d])]/Sqrt[2]]*Log[1 + (I*(Sqrt[e] - Sqrt[c^2*d + e]
)*E^(I*ArcSec[c*x]))/(c*Sqrt[d])] + b*ArcSec[c*x]*Log[1 + (I*(-Sqrt[e] + Sqrt[c^2*d + e])*E^(I*ArcSec[c*x]))/(
c*Sqrt[d])] + 2*b*ArcSin[Sqrt[1 - (I*Sqrt[e])/(c*Sqrt[d])]/Sqrt[2]]*Log[1 + (I*(-Sqrt[e] + Sqrt[c^2*d + e])*E^
(I*ArcSec[c*x]))/(c*Sqrt[d])] + b*ArcSec[c*x]*Log[1 - (I*(Sqrt[e] + Sqrt[c^2*d + e])*E^(I*ArcSec[c*x]))/(c*Sqr
t[d])] - 2*b*ArcSin[Sqrt[1 - (I*Sqrt[e])/(c*Sqrt[d])]/Sqrt[2]]*Log[1 - (I*(Sqrt[e] + Sqrt[c^2*d + e])*E^(I*Arc
Sec[c*x]))/(c*Sqrt[d])] + b*ArcSec[c*x]*Log[1 + (I*(Sqrt[e] + Sqrt[c^2*d + e])*E^(I*ArcSec[c*x]))/(c*Sqrt[d])]
 - 2*b*ArcSin[Sqrt[1 + (I*Sqrt[e])/(c*Sqrt[d])]/Sqrt[2]]*Log[1 + (I*(Sqrt[e] + Sqrt[c^2*d + e])*E^(I*ArcSec[c*
x]))/(c*Sqrt[d])] - 2*b*ArcSec[c*x]*Log[1 + E^((2*I)*ArcSec[c*x])] + a*Log[d + e*x^2] - I*b*PolyLog[2, ((-I)*(
-Sqrt[e] + Sqrt[c^2*d + e])*E^(I*ArcSec[c*x]))/(c*Sqrt[d])] - I*b*PolyLog[2, (I*(-Sqrt[e] + Sqrt[c^2*d + e])*E
^(I*ArcSec[c*x]))/(c*Sqrt[d])] - I*b*PolyLog[2, ((-I)*(Sqrt[e] + Sqrt[c^2*d + e])*E^(I*ArcSec[c*x]))/(c*Sqrt[d
])] - I*b*PolyLog[2, (I*(Sqrt[e] + Sqrt[c^2*d + e])*E^(I*ArcSec[c*x]))/(c*Sqrt[d])] + I*b*PolyLog[2, -E^((2*I)
*ArcSec[c*x])])/(2*e)

Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 2.71 (sec) , antiderivative size = 446, normalized size of antiderivative = 0.92

method result size
parts \(\frac {a \ln \left (e \,x^{2}+d \right )}{2 e}-\frac {i b \,c^{2} d \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (c^{2} d \,\textit {\_Z}^{4}+\left (2 c^{2} d +4 e \right ) \textit {\_Z}^{2}+c^{2} d \right )}{\sum }\frac {\left (\textit {\_R1}^{2}+1\right ) \left (i \operatorname {arcsec}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} c^{2} d +c^{2} d +2 e}\right )}{4 e}-\frac {b \,\operatorname {arcsec}\left (c x \right ) \ln \left (1+i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}-\frac {b \,\operatorname {arcsec}\left (c x \right ) \ln \left (1-i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}+\frac {i b \operatorname {dilog}\left (1+i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}+\frac {i b \operatorname {dilog}\left (1-i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}-\frac {i b \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (c^{2} d \,\textit {\_Z}^{4}+\left (2 c^{2} d +4 e \right ) \textit {\_Z}^{2}+c^{2} d \right )}{\sum }\frac {\left (\textit {\_R1}^{2} c^{2} d +c^{2} d +4 e \right ) \left (i \operatorname {arcsec}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} c^{2} d +c^{2} d +2 e}\right )}{4 e}\) \(446\)
derivativedivides \(\frac {\frac {a \,c^{2} \ln \left (c^{2} e \,x^{2}+c^{2} d \right )}{2 e}+b \,c^{2} \left (-\frac {\operatorname {arcsec}\left (c x \right ) \ln \left (1+i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}-\frac {\operatorname {arcsec}\left (c x \right ) \ln \left (1-i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}+\frac {i \operatorname {dilog}\left (1+i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}+\frac {i \operatorname {dilog}\left (1-i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}-\frac {i c^{2} d \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (c^{2} d \,\textit {\_Z}^{4}+\left (2 c^{2} d +4 e \right ) \textit {\_Z}^{2}+c^{2} d \right )}{\sum }\frac {\left (\textit {\_R1}^{2}+1\right ) \left (i \operatorname {arcsec}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} c^{2} d +c^{2} d +2 e}\right )}{4 e}-\frac {i \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (c^{2} d \,\textit {\_Z}^{4}+\left (2 c^{2} d +4 e \right ) \textit {\_Z}^{2}+c^{2} d \right )}{\sum }\frac {\left (\textit {\_R1}^{2} c^{2} d +c^{2} d +4 e \right ) \left (i \operatorname {arcsec}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} c^{2} d +c^{2} d +2 e}\right )}{4 e}\right )}{c^{2}}\) \(460\)
default \(\frac {\frac {a \,c^{2} \ln \left (c^{2} e \,x^{2}+c^{2} d \right )}{2 e}+b \,c^{2} \left (-\frac {\operatorname {arcsec}\left (c x \right ) \ln \left (1+i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}-\frac {\operatorname {arcsec}\left (c x \right ) \ln \left (1-i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}+\frac {i \operatorname {dilog}\left (1+i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}+\frac {i \operatorname {dilog}\left (1-i \left (\frac {1}{c x}+i \sqrt {1-\frac {1}{c^{2} x^{2}}}\right )\right )}{e}-\frac {i c^{2} d \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (c^{2} d \,\textit {\_Z}^{4}+\left (2 c^{2} d +4 e \right ) \textit {\_Z}^{2}+c^{2} d \right )}{\sum }\frac {\left (\textit {\_R1}^{2}+1\right ) \left (i \operatorname {arcsec}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} c^{2} d +c^{2} d +2 e}\right )}{4 e}-\frac {i \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (c^{2} d \,\textit {\_Z}^{4}+\left (2 c^{2} d +4 e \right ) \textit {\_Z}^{2}+c^{2} d \right )}{\sum }\frac {\left (\textit {\_R1}^{2} c^{2} d +c^{2} d +4 e \right ) \left (i \operatorname {arcsec}\left (c x \right ) \ln \left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -\frac {1}{c x}-i \sqrt {1-\frac {1}{c^{2} x^{2}}}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} c^{2} d +c^{2} d +2 e}\right )}{4 e}\right )}{c^{2}}\) \(460\)

[In]

int(x*(a+b*arcsec(c*x))/(e*x^2+d),x,method=_RETURNVERBOSE)

[Out]

1/2*a/e*ln(e*x^2+d)-1/4*I*b*c^2*d/e*sum((_R1^2+1)/(_R1^2*c^2*d+c^2*d+2*e)*(I*arcsec(c*x)*ln((_R1-1/c/x-I*(1-1/
c^2/x^2)^(1/2))/_R1)+dilog((_R1-1/c/x-I*(1-1/c^2/x^2)^(1/2))/_R1)),_R1=RootOf(c^2*d*_Z^4+(2*c^2*d+4*e)*_Z^2+c^
2*d))-b/e*arcsec(c*x)*ln(1+I*(1/c/x+I*(1-1/c^2/x^2)^(1/2)))-b/e*arcsec(c*x)*ln(1-I*(1/c/x+I*(1-1/c^2/x^2)^(1/2
)))+I*b/e*dilog(1+I*(1/c/x+I*(1-1/c^2/x^2)^(1/2)))+I*b/e*dilog(1-I*(1/c/x+I*(1-1/c^2/x^2)^(1/2)))-1/4*I*b/e*su
m((_R1^2*c^2*d+c^2*d+4*e)/(_R1^2*c^2*d+c^2*d+2*e)*(I*arcsec(c*x)*ln((_R1-1/c/x-I*(1-1/c^2/x^2)^(1/2))/_R1)+dil
og((_R1-1/c/x-I*(1-1/c^2/x^2)^(1/2))/_R1)),_R1=RootOf(c^2*d*_Z^4+(2*c^2*d+4*e)*_Z^2+c^2*d))

Fricas [F]

\[ \int \frac {x \left (a+b \sec ^{-1}(c x)\right )}{d+e x^2} \, dx=\int { \frac {{\left (b \operatorname {arcsec}\left (c x\right ) + a\right )} x}{e x^{2} + d} \,d x } \]

[In]

integrate(x*(a+b*arcsec(c*x))/(e*x^2+d),x, algorithm="fricas")

[Out]

integral((b*x*arcsec(c*x) + a*x)/(e*x^2 + d), x)

Sympy [F]

\[ \int \frac {x \left (a+b \sec ^{-1}(c x)\right )}{d+e x^2} \, dx=\int \frac {x \left (a + b \operatorname {asec}{\left (c x \right )}\right )}{d + e x^{2}}\, dx \]

[In]

integrate(x*(a+b*asec(c*x))/(e*x**2+d),x)

[Out]

Integral(x*(a + b*asec(c*x))/(d + e*x**2), x)

Maxima [F]

\[ \int \frac {x \left (a+b \sec ^{-1}(c x)\right )}{d+e x^2} \, dx=\int { \frac {{\left (b \operatorname {arcsec}\left (c x\right ) + a\right )} x}{e x^{2} + d} \,d x } \]

[In]

integrate(x*(a+b*arcsec(c*x))/(e*x^2+d),x, algorithm="maxima")

[Out]

b*integrate(x*arctan(sqrt(c*x + 1)*sqrt(c*x - 1))/(e*x^2 + d), x) + 1/2*a*log(e*x^2 + d)/e

Giac [F(-2)]

Exception generated. \[ \int \frac {x \left (a+b \sec ^{-1}(c x)\right )}{d+e x^2} \, dx=\text {Exception raised: RuntimeError} \]

[In]

integrate(x*(a+b*arcsec(c*x))/(e*x^2+d),x, algorithm="giac")

[Out]

Exception raised: RuntimeError >> an error occurred running a Giac command:INPUT:sage2OUTPUT:sym2poly/r2sym(co
nst gen & e,const index_m & i,const vecteur & l) Error: Bad Argument Value

Mupad [F(-1)]

Timed out. \[ \int \frac {x \left (a+b \sec ^{-1}(c x)\right )}{d+e x^2} \, dx=\int \frac {x\,\left (a+b\,\mathrm {acos}\left (\frac {1}{c\,x}\right )\right )}{e\,x^2+d} \,d x \]

[In]

int((x*(a + b*acos(1/(c*x))))/(d + e*x^2),x)

[Out]

int((x*(a + b*acos(1/(c*x))))/(d + e*x^2), x)